<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!--xmlns:th="http://www.thymeleaf.org"-->
<head>
    <meta charset="UTF-8">
    <title>后台登录</title>
<!--    <link rel="stylesheet" type="text/css" href="/css/admin.css">-->
    <link rel="stylesheet" type="text/css" th:href="@{/css/admin.css}">
</head>
<body>
    <div class="frm">
        <div class="title">
            后台登录
        </div>

        <form action="/admin/login/submit" method="post">
            <table>
                <tr>
                    <td>用户名</td>
                    <td>
                        <input type="text" name="userName" required="required">
                    </td>
                    <br>
                </tr>
                <tr>
                    <td>密码</td>
                    <td>
                        <input type="password" name="password" required="required">
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <input type="submit" value="登录">
                        <div th:text="${error}" style="color: red"></div>
                    </td>
                </tr>
            </table>
        </form>
    </div>
</body>
</html>